﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.Composition;
using System.Windows.Controls;
using System.Windows;

namespace Dynamic_UI_Framework
{
    [Export(typeof(ElementAdapter))]
    [PartCreationPolicy(CreationPolicy.Shared)]
    public class ElementAdapter : AdapterBase<IElement, FrameworkElement>
    {
        public override IElement DefaultBuild(string name)
        {
            throw new NotImplementedException();
        }

        protected override void Adapt(IElement codon, FrameworkElement target)
        {
            codon.Target = target;
        }

        protected override IElement Create()
        {
            return new Element();
        }
    }

}
